package com.itheima.controller;


import com.itheima.project.PageBean;
import com.itheima.project.Result;
import com.itheima.project.log.LogQueryParam;
import com.itheima.filter.service.inter.EmpLogService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/log")
public class EmpLogController {
    @Resource
    private EmpLogService logService;
    @GetMapping("/page")
    public Result page(LogQueryParam login){
        PageBean page = logService.page(login);
        return Result.success(page);
    }
}
